
typedef enum mp3file_status {incomplete, done, shared} mp3file_status;

typedef struct mp3file
{
 char filename[255];
 char checksum[100];
 int size, fullsize, bitrate, frequency, length;
 mp3file_status stat;
 struct mp3file * next;
 int menu;
} mp3file;

typedef struct ifooter
{
 char id[3];
 long int filesize;
 char checksum[100];
} ifooter;

typedef struct scanprogress
{
 osgbpb_info_stamped_list * filelist;
 char mdpath[300];
 int con, read;
} scanprogress;

ifooter * lib_fileinfo(char * path, char * filename, char * out);
void lib_rescan_init(scanprogress * s);
void lib_rescan(scanprogress * s);
void lib_writefooter(transfer * dl);
void lib_close(void);
void lib_completemenu(void);

